<?php
/*
 * Created on 2013-12-10
 *
 * 测试项目的常用变量
 */

 $project = explode('/',$_SERVER['REQUEST_URI']);
 define('BASEPATH' , 'http://'.$_SERVER['HTTP_HOST'].'/'.$project[1]);	//项目根目录 
 define('ROOT_PATH',$_SERVER['DOCUMENT_ROOT'].$project[1]);	//项目根目录 
 
 define('FILE_SEPRATOR',DIRECTORY_SEPARATOR);//文件分隔符 ，已测试直接echo DIRECTORY_SEPARATOR不行，会只打印出一个分号
 
 define('PATH_SEPARATOR',PATH_SEPARATOR);//路径分隔符

 //echo 'http://'.$_SERVER['HTTP_HOST'].'/'.$project[1]; 
 define("DB_ADMIN","joabhome");
?>
